package com.ourchem.bus.domain;

import com.ourchem.bus.vo.FileVo;
import com.ourchem.common.annotation.Excel;
import com.ourchem.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * course对象 course
 * 
 * @author xiYan
 * @date 2023-01-12
 */
public class Course extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 课程名 */
    @Excel(name = "课程名")
    private String name;

    /** 课程简介 */
    @Excel(name = "课程简介")
    private String intro;

    /** 课程封面（logo） */
    @Excel(name = "课程封面", readConverterExp = "l=ogo")
    private String cover;

    /** 讲师id */
    @Excel(name = "讲师id")
    private Long teacherId;

    /** 价格 */
    @Excel(name = "价格")
    private String price;

    private FileVo file;

    public FileVo getFile() {
        return file;
    }

    public Lecturer lecturer;

    private Organization organization;

    public Organization getOrganization() {
        return organization;
    }

    public void setOrganization(Organization organization) {
        this.organization = organization;
    }

    public Lecturer getLecturer() {
        return lecturer;
    }

    public void setLecturer(Lecturer lecturer) {
        this.lecturer = lecturer;
    }

    public void setFile(FileVo file) {
        this.file = file;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setPrice(String price) 
    {
        this.price = price;
    }

    public String getPrice() 
    {
        return price;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("intro", getIntro())
            .append("cover", getCover())
            .append("teacherId", getTeacherId())
            .append("price", getPrice())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
